import {
  loginRouter,
  registerRouter,
  headerRouter,
  blogRouter
} from "./views/views-router";

export const prompRouter = {
  path: '/promp',
  name: 'promp',
  title: '未开通提示',
  component: () => import('@/components/common/Promp')
}

export const errorRouter = {
  path: '/*',
  name: 'error-404',
  meta: {
    title: '404-页面不存在'
  },
  component: () => import('@/components/error-page/ErrorPage')
}

export const routers = [
  blogRouter,
  {
    path: '/',
    name: 'home',
    title: '应用',
    component: () => import('@/views/home-page/HomePage'),
    children: [
      ...headerRouter,
      loginRouter,
      registerRouter,
      prompRouter,
      errorRouter
    ]
  }
]
